/**
 * 
 */
package com.sw.item.flyweight;

/**
 * @author Donald
 *
 */
public class ItemElementData {
	private int		flags;
	private short	special;
	private float	value;
	/**
	 * Assigns a flag
	 * @param flag the flag
	 */
	public void assignFlag(final int flag) {
		flags |= flag;
	}
	/**
	 * Determines if the {@link ItemElementData} has a specific flag set.
	 * @param flag the flag
	 * @return true if the object has the flag set; false otherwise
	 */
	public boolean hasIoFlag(final int flag) {
		return (flags & flag) == flag;
	}
	/**
	 * Removes a flag.
	 * @param flag the flag
	 */
	public void removeFlag(final int flag) {
		flags = flags & ~flag;
	}
	
}
